class ErrorInfoEntity {
  String? time;
  String? stack;
  String? exception;
  String? path;

  ErrorInfoEntity({this.time, this.stack, this.exception, this.path});

  ErrorInfoEntity.fromJson(Map<String, dynamic> json) {
    time = json['time'];
    stack = json['stack'];
    exception = json['exception'];
    path = json['path'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['time'] = this.time;
    data['stack'] = this.stack;
    data['exception'] = this.exception;
    data['path'] = this.path;
    return data;
  }

  @override
  String toString(){
    return "路径：$path\n异常：$exception\n堆栈：$stack\n时间：$time";
  }
}